package com.jvm;

public class GcTest {

    public void gcLocatioin1() {
        byte[] bytes = new byte[1024 * 1024 * 10];
        System.gc();
    }

    public void gcLocatioin2() {
        byte[] bytes = new byte[1024 * 1024 * 10];
        bytes = null;
        System.gc();
    }

    public void gcLocatioin3() {
        {
            byte[] bytes = new byte[1024 * 1024 * 10];
        }
        System.gc();
    }

    public void gcLocatioin4() {

    }

    public void gcLocatioin5() {

    }


    public static void main(String[] args) {
        GcTest gcTest = new GcTest();
        gcTest.gcLocatioin3();
    }

}
